<%@page import="guest.GuestVo"%>
<%@page import="guest.Guest"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<style>
@import url(http://fonts.googleapis.com/earlyaccess/hanna.css); /* "Hanna" */
#p_title {
   border:2px solid #0fce84;
   position:relative;
   width:1000px;
   height:40px;

   color:#ffffff;
   text-align:center;
   font-weight:normal;
   font-size:33px;
   color:#0fce84;
   margin-top: 50px;
   margin-bottom: 10px;
} 
#guest_outline{
	width: 500px;
	margin: auto;
	font-family: Hanna;
}
h1{
	text-align: center;
}
#guest_line{
	width: 480px;
	height: 100%;
	position: relative;
}
#line{
	position: relative;
	width: 480px;
	height: 30px;
}
#lineC{
	position: relative;
	width: 480px;
	height: 150px;
}
#a,#c{
	background-color: #ffaaaa;
}
#a{
	width: 120px;
	text-align: center;
}
#b{
	width:360px;
	text-align:center;
}
#c{
	width: 100%;
	text-align: center;
}
#a, #b{
	float: left;
}
#d{
	height: 100%;
	text-align: center;
}
#mid,#subject,#mdate{
	width:90%;
	height: 90%;
}
#gContent{
	width: 100%;
}
</style>
</head>
<body>
<jsp:useBean id='vo' class='guest.GuestVo'/>
<jsp:setProperty property="*" name="vo"/>
<%
Guest g = new Guest();
g.setVo(vo);
GuestVo gv = g.view();
%>

<div id='p_title'>Schedule</div>
<div id="guest_outline">
<h1>-방명록 수정-</h1>
<form id='frm_insert' action="index.jsp?inc_contents=./guest/modify_result.jsp" method='post'>
<div id='guest_list'>
	
	<div id='line'>
	<div id='a'>글번호</div><div id='b'>
			<%=gv.getSerial()%>
			<input type='hidden' name='serial' value='<%=gv.getSerial()%>'>
		</div>
	</div>
	<div id='line'>
	<div id='a'>작성자</div><div id='b'>
			<output name='mid'><%=gv.getMid()%></output>
		</div>
	</div>
	<div id='line'>
	<div id='a'>제목</div><div id='b'>
			<input type='text' id='subject' name='subject' value="<%=gv.getSubject()%>">
		</div>
	</div>
	<div id='line'>
	<div id='a'>날짜</div><div id='b'>
			<output name='mdate'><%=gv.getMdate()%></output>
		</div>
	</div>
	<div id='lineC'>
	<div id='c'>내용</div>
	<div id='d'>
		<textarea id='gContent' name='content' rows="4" cols="20"><%=gv.getContent()%></textarea>
	</div>
	</div>
	　<br/>
	<input type='submit' value='수정' id='btnModify'>
	<input type='button' value='취소' id='btnCancel' onclick="location.href='index.jsp?inc_contents=./guest/list.jsp'">

</div>
</form>
</div>
</body>
</html>